/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Atores;

/**
 *
 * @author jorge
 */
public class Secretario extends Pessoa implements Funcionario{
    
    private int horasExtras;
    private double salario;

    public Secretario() {
        salario = 1000;
        horasExtras = 0;
    }

    public int getHorasExtras() {
        return horasExtras;
    }

    public void setHorasExtras(int horasExtras) {
        this.horasExtras = horasExtras;
    }
    
    @Override
    public double calcularSalario() {
        return salario + horasExtras * 5;
    }

    @Override
    public void aumentarrSalario(double aumento) {
        this.salario += aumento;
    }

    @Override
    public void cadastrarHorasExtras(int horas) {
        horasExtras += horas;
    }
    
}
